package cn.lzwei.bilimall.product.feign;

import cn.lzwei.common.to.BoundsTo;
import cn.lzwei.common.to.FullReductionTo;
import cn.lzwei.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "bilimall-coupon")
public interface CouponFeignService {

    //保存积分信息
    @PostMapping("coupon/spubounds/save")
    R saveBounds(@RequestBody BoundsTo boundsTo);
    //保存打折、满减、会员优惠信息
    @PostMapping("coupon/skufullreduction/saveTotal")
    R saveTotal(@RequestBody FullReductionTo fullReductionTo);

}
